﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day0320_练习
{
    class Program
    {
        static void Main(string[] args)
        {
            // 定义（声明）两个结构体变量，用在创建rt对象的时候给rt的原点和中心点赋值
            XYPiont rtPoint = new XYPiont(0, 0);
            XYPiont rtCenter = new XYPiont(6, 5);
            Rectangle rt = new Rectangle(12, 10, rtPoint, rtCenter);

            double zhCh, area;
            rt.Cal(out zhCh, out area);
            Console.WriteLine(zhCh + " " + area);

            double zhCh01, area01;
            zhCh01 = rt.ZhangChang(out area01);
            Console.WriteLine(zhCh01 + " " + area01);

            //int a = 2;
            //M(out a);
            //Console.WriteLine(a);
        }
        public static void M(out int x)
        {
            x = 1;
        }

    }


}
